/**
 * author: 何其沆(pooky)
 * desc: Existing Clients - admin - api
 * date: 2021-11-29
 */
import { get } from '@/utils/request.js'
import api from '@/config/index.js'

export default {
  /**
   * 获取权限
   * @returns {Promise | Promise<unknown>}
   */
  getAuthority() {
    return get(api.API_VERSION + '/Admin/ExistingClients/GetAuthority', {}, false)
  },
  /**
   * 获取权限下销售人员
   * @param data
   * @returns {Promise | Promise<unknown>}
   */
  getEmployeeSales(data) {
    return get(api.API_VERSION + '/Admin/ExistingClients/GetEmployeeSales', data, false)
  }
}
